InitContextualMenus
NEW WITH CONTEXTUAL MENUS
Adds the application to the system registry of contextual menu clients.
pascal OSStatus InitContextualMenus (void);
- function result
- A result code; see "Result Codes".
DISCUSSION
Your application should call theInitContextualMenus
function early in your startup code to register your application as a contextual menu client. If you do not register your application, some system-level functions may respond as though your application does not use contextual menus. Not registering your application may also causeProcessIsContextualMenuClient
to return an incorrect value.If you are a 68K application, you must pass the selector
gestaltContextualMenuAttr
to theGestalt
function before calling theInitContextualMenus
function. If theGestalt
function returns a bit field with thegestaltContextualTrapAvailable
bit set,InitContextualMenus
can be called; see "Contextual Menu Gestalt Selector Constants".